package lu.med.praxiswahl.wahlumed.client.menustructure;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;

import lu.med.praxiswahl.wahlumed.client.wclient.Main;


/**
 * 
 * @author Lars Holger Roth
 */
public class ZertifikatePrintOptionsDialog extends JDialog implements
	ActionListener
{
    public ZertifikatePrintOptionsDialog(Main dataManager)
    {
	super(dataManager, "Zertifikate Druck-Optionen", true);
	this.setLayout(new BorderLayout());

	JTabbedPane tp = new JTabbedPane();

	JPanel z1, z2, z3, z4, z5, z6, z7;

	z1 = new JPanel(new GridLayout(0, 4));
	z1.add(new JLabel("Haupttext X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Matricule X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Option 1 X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Option 2 X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Zeit von X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Zeit bis X[mm]:"));
	z1.add(new JTextField(""));
	z1.add(new JLabel("Y[mm]:"));
	z1.add(new JTextField(""));

	z2 = new JPanel(new GridLayout(0, 4));
	z2.add(new JLabel("Haupttext X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Matricule X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Option 1 X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Option 2 X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Zeit von X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Zeit bis X[mm]:"));
	z2.add(new JTextField(""));
	z2.add(new JLabel("Y[mm]:"));
	z2.add(new JTextField(""));

	z3 = new JPanel(new GridLayout(0, 4));
	z3.add(new JLabel("Haupttext X[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Y[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Matricule X[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Y[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Voraussichtlicher Geburtstermin X[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Y[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Mutterschaftsurlaub ab X[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel("Y[mm]:"));
	z3.add(new JTextField(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));
	z3.add(new JLabel(""));

	z4 = new JPanel(new GridLayout(0, 4));
	z4.add(new JLabel("Haupttext X[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Y[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Matricule X[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Y[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Voraussichtlicher Geburtstermin X[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Y[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Mutterschaftsurlaub ab X[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel("Y[mm]:"));
	z4.add(new JTextField(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));
	z4.add(new JLabel(""));

	z5 = new JPanel(new GridLayout(0, 4));
	z5.add(new JLabel("Haupttext X[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel("Y[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel("Matricule X[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel("Y[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel("Sprechstunde X[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel("Y[mm]:"));
	z5.add(new JTextField(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));
	z5.add(new JLabel(""));

	z6 = new JPanel(new GridLayout(0, 4));
	z6.add(new JLabel("Haupttext X[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel("Y[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel("Matricule X[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel("Y[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel("Sprechstunde X[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel("Y[mm]:"));
	z6.add(new JTextField(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));
	z6.add(new JLabel(""));

	z7 = new JPanel(new GridLayout(0, 4));
	z7.add(new JLabel("Haupttext X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Option 1 X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Option 2 X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Option 3 X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("von / bis X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Sprechstunde X[mm]:"));
	z7.add(new JTextField(""));
	z7.add(new JLabel("Y[mm]:"));
	z7.add(new JTextField(""));

	tp.add(z1, "Stillbescheinigung Deutsch");
	tp.add(z2, "Stillbescheinigung Französisch");
	tp.add(z3, "Mutterschutz Deutsch");
	tp.add(z4, "Mutterschutz Französisch");
	tp.add(z5, "Anwesenheit Deutsch");
	tp.add(z6, "Anwesenheit Französisch");
	tp.add(z7, "Bescheinigung");

	JPanel buttonPanel = new JPanel();
	JButton b1, b2;
	b1 = new JButton("Ok");
	b2 = new JButton("Abbrechen");
	b1.addActionListener(this);
	b2.addActionListener(this);
	buttonPanel.add(b1);
	buttonPanel.add(b2);
	this.add(buttonPanel, BorderLayout.SOUTH);
	this.add(tp, BorderLayout.CENTER);
	this.pack();
	this.setVisible(true);
    }

    @Override
    public void actionPerformed(ActionEvent e)
    {
	this.setVisible(false);
    }
}
